import request from '@/utils/request'

// 查询小程序会员列表
export function listAppUser(query) {
  return request({
    url: '/app/manager/appUser/list',
    method: 'get',
    params: query
  })
}

// 查询小程序会员详细
export function getAppUser(id) {
  return request({
    url: '/app/manager/appUser/' + id,
    method: 'get'
  })
}

// 新增小程序会员
export function addAppUser(data) {
  return request({
    url: '/app/manager/appUser',
    method: 'post',
    data: data
  })
}

// 修改小程序会员
export function updateAppUser(data) {
  return request({
    url: '/app/manager/appUser',
    method: 'put',
    data: data
  })
}

// 删除小程序会员
export function delAppUser(id) {
  return request({
    url: '/app/manager/appUser/' + id,
    method: 'delete'
  })
}

export function listAllAppUser() {
  return request({
    url: '/app/manager/appUser/listAll',
    method: 'get'
  })
}
